package com.jxt.myjxtmanager.ui.activity;

import android.os.Bundle;

import com.jxt.myjxtmanager.BaseActivity;
import com.jxt.myjxtmanager.R;
import com.jxt.myjxtmanager.views.updateAvatar.ClipZoomImageView;

/**
 * Created by qm on 2017/3/22 0022.
 */
public class LeaveForDetailsActivity extends BaseActivity {

    private ClipZoomImageView ivLeaveDetails;
    private int type = 1;
    private String title = "主题班会";

    @Override
    protected int getLayoutId() {
        return R.layout.activity_leave_details;
    }

    @Override
    protected void initView() {
        setToolbarTitle(title);
        setToolbarNavigationIcon(R.drawable.ic_left_return);
        ivLeaveDetails = (ClipZoomImageView) findViewById(R.id.iv_leave_details);
    }

    @Override
    public void onClickLeftMenu() {
        super.onClickLeftMenu();
    }

    @Override
    protected void initData() {
        if (type == 1) {
            ivLeaveDetails.setImageResource(R.drawable.ic_class_meeting);
        } else {
            ivLeaveDetails.setImageResource(R.drawable.ic_club_note);
        }
    }

    @Override
    protected void eventBundle(Bundle bundle) {
        super.eventBundle(bundle);
        if (bundle != null) {
            type = bundle.getInt("type");
            title = bundle.getString("title");
        }
    }
}
